package cn.stylefeng.guns.dao.entity;

import java.math.BigDecimal;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author quspacedraon
 * @since 2024-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("distribution_doc")
@ApiModel(value = "DistributionDoc对象", description = "")
public class DistributionDoc extends BusinessBaseEntity {

    private static final long serialVersionUID = 1L;

    private Long time;

    @ApiModelProperty(value = "发生地点编码")
    private String stoCode;

    @ApiModelProperty(value = "送达方编码")
    private String senderCode;

    @ApiModelProperty(value = "商品编号")
    private String goodsCode;

    @ApiModelProperty(value = "数量")
    private Integer num;

    @ApiModelProperty(value = "去税成本额")
    private BigDecimal price1;

    @ApiModelProperty(value = "去税税金")
    private BigDecimal price2;

    @ApiModelProperty(value = "含税成本额")
    private BigDecimal price3;

    @ApiModelProperty(value = "调拨去税金额")
    private BigDecimal price4;

    @ApiModelProperty(value = "调拨税金")
    private BigDecimal price5;

    @ApiModelProperty(value = "调拨金额")
    private BigDecimal price6;
    @ApiModelProperty(value = "毛利额")
    private BigDecimal price7;
    @ApiModelProperty(value = "零售额")
    private BigDecimal price8;


    @ApiModelProperty(value = "数据主体")
    private String data;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "删除标记：Y-已删除，N-未删除")
    @TableField(
            value = "del_flag",
            fill = FieldFill.INSERT
    )
    @ChineseDescription("删除标记（Y-已删除，N-未删除）")
    @TableLogic(value = "N", delval = "Y")
    private String delFlag;


}
